/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>LOINC Observation Act Context Age Type</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A19758 (C-0-T13953-A16226-A19757-A19758-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getLOINCObservationActContextAgeType()
 * @model extendedMetaData="name='LOINCObservationActContextAgeType'"
 * @generated
 */
public enum LOINCObservationActContextAgeType implements Enumerator {
	/**
	 * The '<em><b>309724</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_309724_VALUE
	 * @generated
	 * @ordered
	 */
	_309724(0, "_309724", "30972-4"),

	/**
	 * The '<em><b>295535</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_295535_VALUE
	 * @generated
	 * @ordered
	 */
	_295535(1, "_295535", "29553-5"),

	/**
	 * The '<em><b>305250</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_305250_VALUE
	 * @generated
	 * @ordered
	 */
	_305250(2, "_305250", "30525-0"),

	/**
	 * The '<em><b>216119</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_216119_VALUE
	 * @generated
	 * @ordered
	 */
	_216119(3, "_216119", "21611-9"),

	/**
	 * The '<em><b>216127</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_216127_VALUE
	 * @generated
	 * @ordered
	 */
	_216127(4, "_216127", "21612-7");

	/**
	 * The '<em><b>309724</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>309724</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_309724
	 * @model literal="30972-4"
	 * @generated
	 * @ordered
	 */
	public static final int _309724_VALUE = 0;

	/**
	 * The '<em><b>295535</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>295535</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_295535
	 * @model literal="29553-5"
	 * @generated
	 * @ordered
	 */
	public static final int _295535_VALUE = 1;

	/**
	 * The '<em><b>305250</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>305250</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_305250
	 * @model literal="30525-0"
	 * @generated
	 * @ordered
	 */
	public static final int _305250_VALUE = 2;

	/**
	 * The '<em><b>216119</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>216119</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_216119
	 * @model literal="21611-9"
	 * @generated
	 * @ordered
	 */
	public static final int _216119_VALUE = 3;

	/**
	 * The '<em><b>216127</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>216127</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_216127
	 * @model literal="21612-7"
	 * @generated
	 * @ordered
	 */
	public static final int _216127_VALUE = 4;

	/**
	 * An array of all the '<em><b>LOINC Observation Act Context Age Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final LOINCObservationActContextAgeType[] VALUES_ARRAY =
		new LOINCObservationActContextAgeType[] {
			_309724,
			_295535,
			_305250,
			_216119,
			_216127,
		};

	/**
	 * A public read-only list of all the '<em><b>LOINC Observation Act Context Age Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<LOINCObservationActContextAgeType> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>LOINC Observation Act Context Age Type</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LOINCObservationActContextAgeType get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			LOINCObservationActContextAgeType result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>LOINC Observation Act Context Age Type</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LOINCObservationActContextAgeType getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			LOINCObservationActContextAgeType result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>LOINC Observation Act Context Age Type</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static LOINCObservationActContextAgeType get(int value) {
		switch (value) {
			case _309724_VALUE: return _309724;
			case _295535_VALUE: return _295535;
			case _305250_VALUE: return _305250;
			case _216119_VALUE: return _216119;
			case _216127_VALUE: return _216127;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private LOINCObservationActContextAgeType(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //LOINCObservationActContextAgeType
